package com.next

class Province
{
    String name

    static belongsTo = [country: Country]
    static hasMany = [cities: City]

    static constraints = {
        name maxSize: 128, unqiue: ['country']
    }

    static mapping = {
        sort 'name'
    }
}
